<template>
    <!-- 在线阅读论文 -->
  <div class="OnlineReadThesis">
      <div class="normalHead">
        <h4 class="headTitle"><span class="iconfont icon-icon-right-copy" @click="goBack"></span>在线阅读论文</h4>
      </div>
      <div class="frame_box">
        <iframe :src="thesisFileName | rightAddress" width="100%" height="100%"></iframe>
      </div>
  </div>
</template>

<script>
export default {
  name: 'OnlineReadThesis',
  props: ['thesisFileName'],
  data () {
    return {
        pSrc:''
    }
  },
  mounted () {
      this.loadPDF()
  },
  methods: {
    loadPDF () {
    },
    /* 返回上一级 */
    goBack () {
        this.$parent.$parent.closeOnlineRead()
    }
  },
  filters: {
    rightAddress: function (value) {
      return '/api' + value
    }
  }
}
</script>

<style>
</style>
<style scoped>
.OnlineReadThesis{
    position: relative;
    width: 100%;
    height: 100%;
}
.normalHead {
  position: absolute;
  top: 0;
  width: 100%;
  height: 57px;
  border-bottom: 1px solid #f7f7f7;
  text-align: left;
}
.normalHead .headTitle {
  display: inline-block;
  height: 57px;
  line-height: 57px;
  padding-left: 18px;
  font-size: 18px;
  color: #007aca;
}
.normalHead .headTitle .iconfont{
    font-size: 20px;
    padding-right: 10px;
    cursor: pointer;
}
.normalHead .headTitle .iconfont:hover{
  opacity: 0.8;
}
.frame_box{
    height: 100%;
    padding-top: 60px;
}
</style>

